<?php

namespace {{namespace}};

use think\Validate;

class {{className}} extends {{extendClass}}
{
    protected $rule = [
        {{rules}}
    ];

    protected $message = [
        {{messages}}
    ];

    public function sceneCreate()
    {
        return $this->only(array_keys($this->rule));
    }

    public function sceneUpdate()
    {
        return $this->only(array_keys($this->rule));
    }
}
